package cn.edu.nuc.thrid.services.interfaces;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.edu.nuc.thrid.dao.UserMapper;
import cn.edu.nuc.thrid.model.User;

public interface UserService {

	/**
	 * 登录
	 * 
	 * @param username
	 * @param userpwd
	 * @return
	 */
	public User login(String username, String userpwd);

	/**
	 * 注册
	 * 
	 * @param user
	 * @return
	 */
	public Integer regist(User user);

	/**
	 * 校验用户名是否存在
	 * 
	 * @return
	 */
	public String valiname(String zybusername);
	
	
	public String logout(HttpServletRequest req,HttpServletResponse resp);
}
